﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/SiteMaster.master"
    CodeBehind="CreateStakeholder.aspx.cs" Inherits="CivilleWebRole.CreateStakeholder" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .style1
        {
            height: 14px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyContent" runat="Server">
    <table style="width: 100%;">
        <tr>
            <td>
                &nbsp;
                <asp:Label ID="NameLbl" runat="server" Text="Name"></asp:Label>
            </td>
            <td>
                &nbsp;
                <asp:TextBox ID="NameTxt" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="NameTxt"
                    CssClass="failureNotification" ErrorMessage="Name is required." ToolTip="Name is required."
                    ValidationGroup="CreateStakeholderValidationGroup"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="BusinessTypeLbl" runat="server" Text="Business Type"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:DropDownList ID="BusinessTypeDDL" runat="server" AutoPostBack="true" DataSourceID="BusinessTypeDataSource"
                    DataTextField="Type" DataValueField="ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="BusinessTypeDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:CivilleConnectionString %>"
                    SelectCommand="SELECT [ID], [Type] FROM [BusinessType]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="BusinessSubTypeLbl" runat="server" Text="Business Subtype"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:DropDownList ID="BusinessSubTypeDDL" runat="server" AutoPostBack="true" DataSourceID="BusinessSubTypeDataSource"
                    DataTextField="SubType" DataValueField="ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="BusinessSubTypeDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:CivilleConnectionString %>"
                    SelectCommand="SELECT [SubType], [ID] FROM [BusinessSubType] WHERE [BusinessTypeID] = @ID">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="BusinessTypeDDL" Name="ID" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="DescriptionLbl" runat="server" Text="Description"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:TextBox ID="DescriptionTxt" runat="server" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="LatitudeLbl" runat="server" Text="Latitude"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:TextBox ID="LatitudeTxt" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="LatitudeRequired" runat="server" ControlToValidate="LatitudeTxt"
                    CssClass="failureNotification" ErrorMessage="Latitude is required." ToolTip="Latitude is required."
                    ValidationGroup="CreateStakeholderValidationGroup"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="LongitudeLbl" runat="server" Text="Longitude"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:TextBox ID="LongitudeTxt" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="LongitudeRequired" runat="server" ControlToValidate="LongitudeTxt"
                    CssClass="failureNotification" ErrorMessage="Longitude is required." ToolTip="Longitude is required."
                    ValidationGroup="CreateStakeholderValidationGroup"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="SiteLbl" runat="server" Text="Website"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:TextBox ID="SiteTxt" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="FacebookLbl" runat="server" Text="Facebook"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:TextBox ID="FacebookTxt" runat="server"></asp:TextBox>
            </td>
        </tr>
        <%--        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="EmailLbl" runat="server" Text="Email"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:TextBox ID="EmailTxt" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="EmailTxt"
                    CssClass="failureNotification" ErrorMessage="Email is required." ToolTip="Email is required."
                    ValidationGroup="CreateStakeholderValidationGroup"></asp:RequiredFieldValidator>
            </td>
        </tr>--%>
        <tr>
            <td class="style1">
                &nbsp;
                <asp:Label ID="LogoLbl" runat="server" Text="Logo"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
                <asp:FileUpload ID="FileUpload" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1">
                &nbsp;
                <asp:Button ID="NextButton" runat="server" Text="Next" OnClick="NextButtonClick"
                    ValidationGroup="CreateStakeholderValidationGroup" />

                &nbsp;
                <asp:Button ID="SaveAccountBtn" runat="server" Text="Save" OnClick="SaveAccountButtonClick"
                    ValidationGroup="CreateStakeholderValidationGroup" />
            </td>
        </tr>
    </table>
</asp:Content>
